package com.liuzhengting.security.dao;

import com.liuzhengting.security.model.po.SysUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface SysUserMapper {
	
	/**
	 * 根据用户名查询用户
	 *
	 * @param loginname
	 * @return
	 */
	SysUser selectByName(String loginname);
	
	Integer createUser(String username, String passwordEncryption);
	
	/**
	 * 查询用户的权限列表
	 *
	 * @param userId
	 * @return
	 */
//	List<SysPermission> selectListByUser(Integer userId);
	
}
